<?php
class News extends NewsAppModel {

	var $name = 'News';
	var $validate = array(
		'title' => array('notempty'),
		'descripcion' => array('notempty')
	);
	
	var $hasOne =array(
		'Image' => array(
			'className' => 'Images.Image',
			'foreignKey' => 'owner_id',
			'conditions' => 'Image.model = "News"',
			'fields' => '',
			'order' => ''
		)
	);
	

}
?>